package edu.biwu.service.impl;

import edu.biwu.po.Account;
import edu.biwu.service.AccountService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
 * @author 王俊彪
 * @version 1.0
 */
@SpringJUnitConfig(locations = "classpath:applicationContext02.xml")
class AccountServiceImplTest02 {
    @Autowired
    @Qualifier(value = "accountServiceImpl02")
    AccountService accountService;
    @Test
    void transferAccounts() {
        accountService.transferAccounts(
                new Account("zhangsan",2000.00),
                new Account("lisi",-2000.00)
        );
    }
}